export const setStore = (name:string, content:any) => {
    if (!content) return;
    if (typeof content !== "string") {
        content = JSON.stringify(content);
    }
    localStorage.setItem(name, content);
}

export const getStore = (name:string) => {
    if (!name) return;
    return localStorage.getItem(name);
}

export const removeStore = (name:string) => {
    if (!name) return;
    localStorage.removeItem(name);
}

export const clearStore = () => {
    localStorage.clear();
}
